package com.atguigu.gmall.sms.api;

import com.atguigu.gmall.common.bean.PageParamVo;
import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.sms.entity.SkuBoundsEntity;
import com.atguigu.gmall.sms.vo.ItemSaleVO;
import com.atguigu.gmall.sms.vo.SkuSaleVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.List;

public interface GmallSmsApi {
    @ApiOperation("根据skuId查询积分信息")
    @GetMapping("sms/skubounds/sku/{skuId}")
    public ResponseVo<SkuBoundsEntity> querySkuBounds(@PathVariable("skuId")Long skuId);
    @ApiOperation("根据skuid查询营销数据")
    @GetMapping("sms/skuladder/sku/{skuId}")
    public ResponseVo<List<ItemSaleVO>> querySkuSalesBySkuId(@PathVariable("skuId")Long skuId);
    @ApiOperation("保存一个sku的所有的营销数据")
    @PostMapping("/sms/skuladder/skuSales/save")
    public ResponseVo saveSkuSales(@RequestBody SkuSaleVO skuSaleVO);

    @GetMapping("/sms/test1")
    public ResponseVo test1(@RequestParam String username,@RequestParam  String password);

    @GetMapping("/sms/test2/{id}")
    public ResponseVo test2(@PathVariable("id") String id);

    @PostMapping("/sms/test3")
    public ResponseVo test3(@RequestBody PageParamVo paramVo);

    @GetMapping("/sms/test4")
    public ResponseVo test4(PageParamVo paramVo);
}
